package org.etnaframework.module.redis;

import redis.clients.jedis.Jedis;

/**
 * Jedis操作的父类
 *
 * @author jasyaf
 * @since 2023-11-15
 */
public abstract class RedisOps {

    protected RedisTemplate jedisTemplate;

    protected RedisOps(RedisTemplate jedisTemplate) {
        this.jedisTemplate = jedisTemplate;
    }

    protected Jedis getJedis() {
        return jedisTemplate.getJedis();
    }
}
